import sys
import pyxbase

master_host_name = '119.120.94.151'
master_port = 20081
start_row = ''
end_row = ''

# init log4cplus
pyxbase.init_log_config('./log4cplus.conf')

# init client_environment
cop = pyxbase.create_client_options_ptr()
isp = pyxbase.create_io_service_pool_ptr()

ce = pyxbase.client_environment(cop, isp, master_host_name, master_port)

rmc = ce.get_root_meta_cache()

print rmc

#print 'scan table_name=%s start_row=%s end_row=%s column_names=%s' \
#        % (table_name, start_row, end_row, column_names)

##while True:
##    ec = s.get_next_row(row)
##    print 'ec=%u - %s row=%s' % (ec.value(), ec.message(), row)
##
##    if ec.value()!=0:
##        break
##
##    print 'row_name: %s' % row.m_row_name